package ch.demo.thirdday;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

@WebService
public class WSDemo {

	@WebMethod
	public int add(@WebParam(name = "number1")int num1, @WebParam(name = "number2") int num2) {
		return num1 + num2;
	}
	@WebMethod
	public int sub(@WebParam(name = "number1")int num1, @WebParam(name = "number2") int num2) {
		return num1 - num2;
	}
	@WebMethod
	public int mul(@WebParam(name = "number1")int num1, @WebParam(name = "number2") int num2) {
		return num1 * num2;
	}
	@WebMethod
	public int div(@WebParam(name = "number1")int num1, @WebParam(name = "number2") int num2) {
		return num1 / num2;
	}
}
